package cn.elves.model.activity.service;

import cn.elves.model.activity.entity.po.Activity;
import cn.elves.model.activity.entity.po.UserTakeActivity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author pc
* @description 针对表【activity】的数据库操作Service
* @createDate 2024-06-16 12:48:17
*/
public interface ActivityService extends IService<Activity> {

    void toDoingState(Long id);

    void toOpenState(Long id);

    void toCloseState(Long id);

    void toRevokeState(Long id);

    void toRefuseState(Long id);

    void toPassState(Long id);

    void toArraignmentState(Long id);

    UserTakeActivity queryActivityOrJoinActivityIfEffective(Long userId, Long activityId, Map<String,Object> matter);

    Boolean decreaseStockCount(Long id);
}
